package com.yoyo.ad.utils;

import com.yoyo.ad.bean.AdStatisticsBean;

public class AnalysisUtils {

    //开始请求
    public static final int TYPE_START = 1;
    //开始请求广告
    public static final int TYPE_REQUEST = 2;
    //广告展示
    public static final int TYPE_PRESENT = 3;
    //广告失败
    public static final int TYPE_FAIL = 4;
    //广告点击
    public static final int TYPE_CLICK = 5;
    //跳过点击
    public static final int TYPE_SKIP = 6;
    //执行安装
    public static final int TYPE_INSTALL = 7;
    //广告拦截
    public static final int TYPE_INTERCEPT = 8;

    public static void addStatistics(long adId, int type) {
        GreenDaoManager.getInstance().getDaoSession().getAdStatisticsBeanDao().insert(new AdStatisticsBean(adId, type));
    }
}
